<?php

function send_load_lab_details()
{
   if(isset($_SESSION['logged_in']) && $_SESSION['permissions'] == 'Faculty')
      return true;
}

function send_menu_lab_details()
{
   $content = "<a href=?q=list_lab_details>List lab_details</a><br>";
  
   return $content;
}

function send_content_lab_details()
{
   if(isset($_GET['q']) && $_GET['q'] == "list_lab_details")
    {
      $query = "select * from lab";
      $result = mysql_query($query);
      $num = mysql_num_rows($result);
      if($num == 0)
         return "No Lab Registration available";

      $content = "";
      $count = 1;
      while($row = mysql_fetch_array($result))
      {
         $content .= "$count.  Name - $row[0] , ID- $row[2], Lab - $row[1]<br><br>";
         $content .= "Faculty - $row[3], Date - $row[4], Time - $row[5]<br><br>";
		 $content .= "Comments - $row[6]<br><hr>";
         $count++;

      }      
    }     
      return $content;
}


   
    
   


function send_content_other_lab_details()
{

}

?>
